package com.google.code.csf.locators.jaxws;

import java.net.URL;

public class JaxWsServiceServiceLocator extends AbstractJaxWsServiceLocator {
    private URL wsdlDocumentUrl;

    protected Object createJaxService() throws Throwable {
        return Class.forName("javax.xml.ws.Service")
                .getMethod("create", null)
                .invoke(null, new Object[]{getWsdlDocumentUrl(), getQName()});
    }

    public final URL getWsdlDocumentUrl() {
        return wsdlDocumentUrl;
    }

    public final void setWsdlDocumentUrl(URL wsdlDocumentUrl) {
        this.wsdlDocumentUrl = wsdlDocumentUrl;
    }
}
